import axios from "./index";
export function getSliders() {
  return axios.get("/slider/list");
}
export function getLessons(
    currentCategory: string = "all",
    offset: number,
    limit: number
  ) {
    return axios.get(
      `/lesson/list?category=${currentCategory}&offset=${offset}&limit=${limit}`
    );
  }
  export function getLesson<T>(id: string) {
    console.log(id)
      return axios.get<T, T>(`/lesson/${id}`);
    }